package com.ysy.logistics.entities.supplier;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.ysy.common.entities.BaseEntity;
import io.swagger.v3.core.util.Json;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @ClassDescription:
 * @Author:姚斯羽
 * @Create:2025/3/25 14:00
 **/
@Data
@TableName(value = "sup_goods", autoResultMap = true)
@Schema(name = "sup_goods", description = "供应商商品实体类")
public class SupGoods extends BaseEntity {
    @Schema(description = "商品id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;
    @Schema(description = "供应商id")
    @TableField(value = "sup_id")
    private String supId;
    @Schema(description = "商品名称")
    @TableField(value = "name")
    private String name;
    @Schema(description = "商品价格(精确到分)")
    @TableField(value = "price")
    private Integer price;
    @Schema(description = "价格计量单位")
    @TableField(value = "price_unit")
    private String priceUnit;
    @Schema(description = "商品类型")
    @TableField(value = "type")
    private String type;
    @Schema(description = "商品状态")
    @TableField(value = "goods_status")
    private String goodsStatus;
    @Schema(description = "商品描述")
    @TableField(value = "remark")
    private String remark;
    @Schema(description = "配图")
    @TableField(value = "pic")
    private String pic;

    @Schema(description = "商品规格")
    @TableField(value = "specification",typeHandler = JacksonTypeHandler.class)
    private List<String> specification;




}
